Adaptive  wireless sensor network and method of routing data in a wireless sensor network

ABSTRACT

A method of routing data in a wireless sensor network, a program product and a wireless sensor network. The method, includes: (a) detecting a temporal event by a source sensor node of a wireless sensor network comprising a multiplicity of sensor nodes; (b) identifying multiple paths from the source sensor node to a sink of the wireless sensor network, the multiple paths consisting of sensor node to sensor node hops; and after (b), (c) using a processor of the source sensor node, optimizing a distribution of data packets to each path of the multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of the multiple paths and (ii) a time to transmit the data packets from the source sensor node to the sink.

FIELD OF THE INVENTION

The present invention relates to the field of wireless sensor networks; more specifically, it relates to a wireless sensor network and a method for routing data in a wireless sensor network.

BACKGROUND

Wireless sensor networks transmit data by hops between sensor nodes. Sending data and receiving data consume power which is generally limited in wireless sensor networks. The multiple hops add time delays to the data transmission time. Present wireless sensor networks and methods do not address both these issues simultaneously. Accordingly, there exists a need in the art to mitigate the deficiencies and limitations described hereinabove.

SUMMARY

A first aspect of the present invention is a method, comprising: (a) detecting a temporal event by a source sensor node of a wireless sensor network comprising a multiplicity of sensor nodes; (b) identifying multiple paths from the source sensor node to a sink of the wireless sensor network, the multiple paths consisting of sensor node to sensor node hops; and after (b), (c) using a processor of the source sensor node, optimizing a distribution of data packets to each path of the multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of the multiple paths and (ii) a time to transmit the data packets from the source sensor node to the sink.

A second aspect of the present invention is a computer program product, comprising: a computer useable storage medium having a computer readable program therein, wherein the computer readable program when executed on a computer causes the computer to: (a) collect information relative to a temporal event detected by a source sensor node of a wireless sensor network comprising a multiplicity of sensor nodes; (b) identify multiple paths from the source sensor node to a sink of the wireless sensor network, the multiple paths consisting of sensor node to sensor node hops; and after (b), (c) optimize a distribution of data packets to each path of the multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of the multiple paths and (ii) a time to transmit the data packets from the source sensor node to the sink.

A third aspect of the present invention is a wireless sensor network, comprising: a set of sensor nodes, each sensor node of the set of sensor nodes including a sensor, a processor, a memory unit, a battery and a transceiver; each sensor node of the set of sensor nodes configured to identify multiple paths from itself to a sink of the wireless sensor network, each path of the multiple paths comprising sensor node to sensor node hops; and each sensor node of the set of sensor nodes configured to optimize a distribution of data packets to each path of the multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of the multiple paths and (ii) a time to transmit the data packets from itself to the sink.

These and other aspects of the invention are described below.

BRIEF DESCRIPTION OF THE DRAWINGS

The features of the invention are set forth in the appended claims. The invention itself, however, will be best understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:

FIG. 1 illustrates a first exemplary wireless sensor network architecture according to an embodiment of the present invention;

FIG. 2 illustrates a second exemplary wireless sensor network architecture according to an embodiment of the present invention;

FIG. 3 illustrates an exemplary wireless sensor node according to an embodiment of the present invention;

FIG. 4 illustrates an exemplary wireless sensor gateway node according to an embodiment of the present invention;

FIG. 5 is a general flowchart of a method for routing data in a wireless sensor network according to an embodiment of the present invention;

FIG. 6 is a detailed flowchart of a method for routing data in a wireless sensor network according to an embodiment of the present invention;

FIG. 7 is a flowchart of the path determination step of the flowchart of FIG. 6;

FIG. 8 is a flowchart of the optimization step of the flowchart of FIG. 6;

FIG. 9 is a chart comparing power consumption of a multipath and data packet number optimized scheme according to embodiments of the present invention (3) to a single-path scheme (1) and to a multipath equal data packet size scheme (2); and

FIG. 10 is a chart comparing data transmission delay of a multipath and data packet number optimized scheme according to embodiments of the present invention (3) to a single-path scheme (1) and to a multipath equal data packet size scheme (2).

DETAILED DESCRIPTION

In the novel wireless sensor networks of the present invention, data packet routing in wireless sensor networks is an event driven temporal activity. When a sensor node detects an event in its vicinity, it becomes a source node (or source) and initiates a route discovery algorithm to a sink (e.g., a gateway node or a base station). If the data volume is greater than a predetermined data volume limit, multiple sensor node paths from the source to the sink are selected in order to reduce the amount of time to transmit all the information from the source to the sink. The information from the sensor is converted into data packets in the source node. The distribution of data packets over the various paths is computed using an optimization algorithm that adaptively addresses both data transmission delay and power consumption by optimizing the balance between power consumption and transmission delay.

Any sensor node in a wireless sensor network can act as a source but there is only one sink. The sink alone will receive all the data packets sent by the source node(s). There may be multiple source nodes transmitting data over different sets of multiple data paths at the same time to the sink. Each sensor node (nεN) has a unique identifier. The data (D) sensed by each node is divided among the multiple paths (Δ_(j)) such that the power consumed by all the sensor nodes in all the paths is minimized to the extent that delay time is not compromised.

FIG. 1 illustrates a first exemplary wireless sensor network architecture according to an embodiment of the present invention. In FIG. 1, a wireless sensor network 100 includes a base station 105 and a set of sensor nodes 110. Each sensor node is designated by the letter “S.” The sensor nodes are in wireless communication, however each sensor node has a limited range, so any given sensor node can communicate only with other sensor nodes that are within communication range. In FIG. 1, base station 105 is the sink and the source is a sensor node designated by the letters “SS.” In one example, base station 105 is a general purpose computer having a transceiver and a removable data and/or program storage device (e.g., magnetic media such as floppy drives and tape drives and optical media such as CD ROM drives). Wireless sensor network 100 constitutes a wireless ad-hoc network which means each sensor node supports a multi-hop routing algorithm where data collected by the source SS (in response to sensing a temporal event) is transmitted along paths indicated by the lines between various sensor nodes “S” to the sink. Each line between sensor nodes is a “hop.” There are three paths 115, 120 and 125 illustrated in FIG. 1. A path is defined as a set of connected of hops from sensor node to sensor node. A hop is defined as a wireless transmission of data from a sensor node to another sensor node or to a base station or gateway node (see FIG. 2).

FIG. 2 illustrates a second exemplary wireless sensor network architecture according to an embodiment of the present invention. FIG. 2 is similar to FIG. 1 except that in a wireless sensor network 130, base station 105 is not the sink, but is connected by a link 135 to a gateway sensor node designated by the letters “GS.” Gateway sensor node GS may be more robust than the other sensor nodes S in terms of communication range and/or the amount of power available. Link 135 may be wireless or wired.

FIG. 3 illustrates an exemplary wireless sensor node according to an embodiment of the present invention. In FIG. 3, a sensor node 200 includes a processor (e.g., microprocessor or microcontroller) 205 connected to a memory (e.g. flash memory) 210 by a bus 215, a sensor 220 connected to processor 205 by a bus 225, a transceiver 230 connected to processor 205 by a bus 235 and a battery 240 connected to processor 205, memory 210, sensor 220 and transceiver 230 by a power distribution system 245. An antenna 250 is connected to transceiver 230. Sensor node 220 may also include an optional charger (e.g., solar cell) 255 for charging battery 240. Processor 205 monitors the power level of battery 240. Processor 205 may also include embedded memory. Sensor 220 may include an analog to digital converter (ADC). There may be additional sensors 220. Sensor 220 may be (but is not limited to) a passive sensor omni-directional sensor (e.g., heat, light, vibration, a passive narrow beam sensor (e.g., camera or laser) or an active sensor (e.g., sonar or radar). Transceiver 230 may be a radio frequency, an optical or an infrared transceiver.

FIG. 4 illustrates an exemplary wireless sensor gateway node according to an embodiment of the present invention. In FIG. 3, a gateway sensor node 300 includes a processor (e.g., microprocessor or microcontroller) 305 connected to a memory (e.g. flash memory) 310 by a bus 315, a sensor 320 connected to processor 305 by a bus 325, a first transceiver 330 connected to processor 305 by a bus 335 and a battery 340 connected to processor 305, memory 310, sensor 320 and transceiver 330 by a power distribution system 445. An antenna 350 is connected to first transceiver 330. Sensor node 320 may also include an optional charger (e.g., solar cell) 335 for charging battery 340. Processor 305 monitors the power level of battery 340. Processor 305 may also include embedded memory. Sensor 320 may include an analog to digital converter (ADC). There may be additional sensors 320. Sensor 320 may be (but is not limited to) a passive sensor omni-directional sensor (e.g., heat, light, vibration, a passive narrow beam sensor (e.g., camera or laser) or an active sensor (e.g., sonar or radar). First transceiver 330 may be a radio frequency, an optical or an infrared transceiver. Gateway sensor 300 may include an optional second transceiver 365 and antenna 370 connected to processor 305 by bus 335. First transceiver 330 may be a radio frequency, an optical or an infrared transceiver. Optional second transceiver 365 may be a short range transceiver used to communicate with other sensor nodes and second transceiver 355 may be a long range transceiver used to communicate with a base station. Gateway sensor 300 may include an optional network interface 375 connected to processor 305 by a bus 380. Optional network interface 375 provides an optional wired connection to a base station.

Sensors of sensor nodes according to embodiments of the present invention include, but are not limited to, environmental sensors (e.g., temperature, pressure, wind speed, wind direction, light intensity, detection of chemicals and detection of radiation) and monitoring and surveillance sensors (e.g., vehicle presence and/or movement and/or human presence and/or movement).

Power consumption in a wireless sensor network according to embodiments of the present invention is categorized into two parts. The first part is power consumed by processing (by the processor and memory) and sensing (by the sensor). The second part is power consumed by transmitting and receiving data packets (i.e., communication delay). Given j paths, the lifespan of the j^(th) path is P_(jmin) and is defined as the power remaining to the sensor node with the least amount of remaining power in the j^(th) path. P_(jmin) thus defines the maximum lifespan of the j^(th) path. For a path to be stable, P_(jmin) must be equal to or less than the power that will be consumed during the time it takes to transmit all the data packets assigned to the j^(th) path,

Power consumption at each sensor node due to processing and sensing in the j^(th) path is given by:

K _(r) =n _(j) *t _(j)  (1)

where

K_(r) is the effective rate of power loss from a node due to processing and sensing (joule/second);

n_(j) is the number of sensor nodes in the j^(th) path; and

t_(j) is the time the path is in use for transmitting data packets.

The time delay per data packet per hop is given by:

τ_(j) =q _(j)+1/B _(j)  (2)

where

τ_(j) is the average delay/packet/hop for j^(th) path (seconds/packet/hop);

q_(j) is the average queuing delay in j^(th) path; and

B_(j) is the bit rate of the j^(th) path (in packets/seconds).

The power consumed for transmission and reception of data packets over the j^(th) path is given by:

p _(j)=2*Δ_(j) *tp _(j) *H _(j)  (3)

where

p_(j) is the power consumed in the j^(th) path;

tp_(j) is the transmission power/packet/hop for j^(th) path (joules/packet/hop);

Δ_(j) is the number of data packets transmitted over the j^(th) path; and

H_(j) is the number of hops in the j^(th) path.

The “2” is because the node must receive and then transmit the data packets.

Comparing equations (1) and (3) K_(r) is seen to be independent of data packet transmission/reception related energy consumption, so K_(r) need not be considered in the distribution of data packets to the various paths.

As the data packets are routed simultaneously over the j paths, the communication delay is not the sum of the individual path delays. Instead, the communication delay can be estimated as the maximum of the individual delay paths. Path delay consists of two components. The first is queuing and processing delay (the average queuing delay/packet/hop for the j^(th) path. The second is transmission/reception delay. The source to sink transmission delay (message switching assumed) for the j^(th) path is given by:

TD _(j)=Δ_(j)*τ_(j) *H _(j) *p _(j)  (4)

where

TD_(j) is the source to sink delay of the j^(th) path;

Δ_(j) is the number of data packets transmitted over the j^(th) path

τ_(j)=q_(j)+1/B_(j) (equation 2);

H_(j) is the number of hops in the j^(th) path; and

p_(j)=1 if a path is selected else p_(j)=0.

Thus, the total delay from source to sink transmission delay (message switching assumed) is given by:

TD=max [(Δ_(j)*τ_(j) *H _(j) *p _(j))]  (5).

When a sensor node detects an event in its vicinity it becomes a source node, generates a set of data packets describing the event, and if the number of data packets is greater than a predetermined number, executes a multipath route discovery algorithm to the sink node. Examples of multipath routing algorithms are described in “Multipath Routing Algorithms for Congestion Minimization” by Banner and Orda, IEEE/ACM Transactions on Networking, Vol. 15, No. 2, April 2007, which is hereby incorporated by reference.

The total data volume D is thus divided into datasets Δ_(j), which are distributed over the multiple paths. Data packet distribution is computed using an optimization algorithm given by:

Z=Σ _(j)(2*Δ_(j) *tp _(j) *H _(j) *p _(j))  (6)

where Z is the objective function; and

Δ_(j), p_(j), H_(j) and p_(j) have been described supra.

The constraints of the optimization problem are:

Σ_(j)Δ_(j) =D  (7)

max [(Δ_(j)*τ_(j) *H _(j) *p _(j))]≦{[D*τ _(stab) *H _(stab) *p _(j)]+[max [(D/n _(j)*Δ_(j) *H _(j) *p _(j))]}/2  (8)

2*Δ_(j) *tp _(j) +K _(r)*max(Δ_(j)*τ_(j) *H _(j) *p _(j))<P _(jmin)  (9)

where

Δ_(j), p_(j), H_(j), D, tp_(j), p_(j), P_(jmin) have been described supra;

τ_(stab) is the average delay/packet/hop for the maximum life span path (seconds/packet/hop); and

H_(stab) is the number of hop counts for the maximum life-span path.

Equation (7) requires the total data number of packets must be distributed among multiple paths. Inequality (8) requires that the average delay from the source to the sink is less than a predefined maximum value. Inequality (9) requires that the life-span of a path should be sufficient to transmit the entire volume of data packets sent over it without interruption.

A sensor node must have sufficient amount of energy to be able to receive all the data packets from a previous sensor node and successively transmit all the data packets received to a subsequent node which is covered by the term (2*Δ_(j)*tp_(j)). Also the node immediately prior to the sink (terminating node) has to have sufficient power to survive the entire amount of time it will take for all data packets sent along the path to be received and transmitted to the sink, (i.e., the survival time of the terminating node equals to the net end-to-end delay). During this time the terminating node dissipates energy at a rate of K_(r). So, the term K_(r)*max (Δ_(j)*τ_(j)*H_(j)*p_(j)) accounts for the amount of power that is dissipated in the terminal node (i.e., the sensor node before the sink).

In the interval of time that it takes to transmit data packets from the source to the sink, the power consumption of each node taking part in data packet transmissions decreases by (2*Δ_(j)*tp_(j))+K_(r)*max [(Δ_(j)*τ_(j)*H_(j)*p_(j))] and the power of any node not taking part in data packet transmission decreases by K_(r)*max [(Δ_(j)*τ_(j)*H_(j)*p_(j))].

FIG. 5 is a general flowchart of a method for routing data in a wireless sensor network according to an embodiment of the present invention. In step 400, a sensor node (now source) detects a temporal event in its vicinity and initiates route discovery. In step 405, it is determined if the volume of data to be transmitted is below or above a preset limit. If the data volume is at or below the preset limit, then the method proceeds to step 410. In step 410, the route discovery algorithm generates a single path through the wireless sensor network (WSN). Then, in step 415, the source sends the data packets over the WSN to the sink. Steps 410 and 415 are essentially scheme (1) described infra.

Returning to step 405. If the data volume is above the preset limit, then the method proceeds to step 420. In step 420, the route discovery algorithm generates multiple paths from the source through the WSN to the sink. Next, in step 425 the source runs the optimization algorithm to distribute the data packets over the multiple paths. Next, in step 430, the source sends the data packets over the multiple paths with transmission time and power consumption being optimized with respect to each other. Steps 420, 425 and 430 are essentially scheme (3) described infra and are illustrated in more detail in FIGS. 6, 7 and 8 described infra.

FIG. 6 is a detailed flowchart of a method for routing data in a wireless sensor network according to an embodiment of the present invention. In step 435, the sensor node is initiated. An event detection flag is set to indicate no event detected (SET FLAG=FALSE). Step 440, it a wait for event loop. A periodic sample of the state of the sensor is performed in step 440. If in step 440 an event is detected, then in step 445 SET FLAG=TRUE is issued and route discovery is initiated by calling a multipath discovery algorithm to determine paths (P). The route multipath discovery algorithm determiners (a) node-disjoint multi-paths, (b) parameters H_(j), tp_(j) and τ_(j) for each j^(th) path, (c) lifespan of the particular paths, and (d) the most stable (i.e., maximum lifetime) path. Step 450 is a wait for all paths to be determined step. A periodic sample of the state of the multipath routing algorithm is performed in step 450. If all paths are determined, the method proceeds to step 455. In step 455 the optimization problem Z (equation 6, with constraints 7, 8 and 9) is called with input described supra. In step 460, a sequential quadratic programming (SQP) algorithm is called to operate on Z to determine the Δ_(j)s (the number of data packets transmitted over each j^(th) path). In step 465, it is determined if SQL termination criteria (TC) is met. SQL is a robust algorithm for nonlinear continuous optimization. SQL iterates until a desired level of convergence is reached (the termination criteria). Alternative non-linear continuous optimization methods may be used. If termination criteria is not met, then the method loops to step 455 otherwise the method proceeds to step 470 to reset the sensor node with SET FLAG=FALSE and the method then loops back to step 440.

FIG. 7 is a flowchart of the path determination step 445 of the flowchart of FIG. 6. In step 475, multipath routing algorithm parameters are initialized. The paths are initialized by (P)=0. The route initiate parameter is initialed by a SET ROUTE INITATE=0 instruction. And a maximum number of hops is set by SET MAX HOP COUNT=(VALUE) instruction. In step 480, a route discovery request is initiated. In step 485 a path solution monitor is initiated by a SET ROUTE DISCOVERY TIMEOUT=TRUE instruction. In step 490 the multipath route discovery algorithm is run to find paths between the source and sink. When a solution is found, the instruction SET ROUTE DISCOVERY TIMEOUT=FALSE is executed. Step 495 checks the value of the SET ROUTE DISCOVERY TIMEOUT parameter and waits on a value of TRUE and proceeds to step 500 on a value of FALSE. In step 500, multiple paths (P) exist between the source and sink, and the source can calculate data packet information (e.g. packet header data) for the various paths from the source to the sink.

FIG. 8 is a flowchart of the optimization step 455 of the flowchart of FIG. 6. In step 505, a perform optimization flag is set to indicate whether or not optimization is to be performed. Step 510, it a wait for an optimization start command loop. A periodic sample of the value of SET FLAG is performed in step 510. If in step 510 FLAG=TRUE, then the method proceeds to step 515. In step 515, the optimization problem Z is called with the set of input variables discussed supra. In step 520, the Lagrangian function is called to relax the objective function (Z) of equation (6) with the three constraints (7), (6) and (9) discussed supra. In step 525, a Lagrangian function is solved with SQL to calculate data packet distribution among the multiple data paths. In step 530, it is determined if the terminal criteria (TC) is met. If the terminal criteria not met, the method loops back to step 515 otherwise the method proceeds to step 535. In step 535, SET FLAGE=FALSE is executed and the method loops back to step 510.

In order to test and verify the embodiments of the present invention, the power consumption of three schemes were simulated. The first scheme is a single-path scheme. The second scheme is a multipath with equal numbers of data packets. The third scheme is the novel multipath and data packet number optimized scheme according to embodiments of the present invention.

In the first, single path scheme (1), the maximum delay=delay caused in a single most stable path if the entire data volume are sent through it (i.e., max [(Δ_(j)*τ_(j)*H_(j)*p_(j))]≦([D*τ_(stab)*H_(stab)*p_(j)]). In the first scheme the upper limit of transmission delay is high and the constraint will be satisfied in most cases.

In the second, multipath equal data packet size scheme (2) the maximum delay=total delay if the data is equally distributed over all the paths (i.e., max [(Δ_(j)*τ_(j)*H_(j)*p_(j))]≦[max (D/n_(j)*τ_(i)*H_(i)*p_(j))], where n=number of spatial paths). In the second scheme, the upper limit of transmission delay is low and consequently the constraint is very restrictive.

In the third, novel multipath and data packet number optimized scheme (3) the upper limit of delay constraint as the average of values of the upper limits proposed in schemes 1 and 2. The optimization problem of equation (6) has been subsequently solved using an SQP technique.

A simulation program was developed using MATLAB. MATLAB stands for “Matrix Laboratory” and is a numerical computing environment and fourth-generation programming language. Developed by “The MathWorks”, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, and Fortran. First the simulation program runs a route discovery algorithm in an area of 15 by 15 square meters where 192 sensor nodes are deployed randomly. Each of the sensor nodes had a transmission radius of 2.4 meters. The sensor nodes were models based on MICA2 motes available from Crossbow of Milpitas, Ca, USA. The routing algorithm gives five possible paths between the source and sink with the parameters listed in TABLE I:

TABLE I Parameter Value Hop Count 8 9 9 10 10 Available Power 23,760 joules for all 192 motes Transmission power/ 1.4 milli-joules for all paths packet/hop Delay/packet/hop 0.068s 0.0681s 0.945s 0.0776s 0.0641s Bit rate 43 packets/second or 12.4 kbps for all K_(r) 0.024 watts (assuming 40% duty cycle) With these input parameters, the optimization algorithm divides data over the paths for a optimal power consumption relative to transmission delay. The overall power consumption and transmission delay are calculated and compared with corresponding values derived by simulating schemes (1) and (2). The results are shown in FIGS. 9 and 10.

FIG. 9 is a chart comparing power consumption of a multipath and data packet number optimized scheme according to embodiments of the present invention (3) to a single-path scheme (1) and to a multipath equal data packet size scheme (2). In FIG. 9, power consumption is at a minimum when the entire data volume is sent through a single most stable path; scheme (1). However, power utilization of the novel scheme (3) does not far exceed that. Power utilization is at maximum when the entire data is equally distributed among the five paths; scheme (2).

FIG. 10 is a chart comparing data transmission delay of a multipath and data packet number optimized scheme according to embodiments of the present invention (3) to a single-path scheme (1) and to a multipath equal data packet size scheme (2). In FIG. 10, scheme 2 has the least delay of the three schemes. Scheme 1 has the most delay of the three schemes. The delay caused by scheme (3), the novel scheme, is between that of schemes (1) and (2). Taking FIGS. 9 and 10 together, it is clear that both power consumption and transmission delay cannot both be minimized simultaneously. However, the balance between power consumption and transmission delay is optimized in scheme (3), the novel scheme according to embodiments of the present invention.

Generally, the method described herein with respect to a method for routing data in a wireless sensor network is practiced as a distributed algorithm and the methods described supra in the flow diagrams FIGS. 5, 6, 7 and 8 may be coded as a set of computer executable code and stored in memories of on the sensor nodes, gateway nodes and base stations of a wireless sensor network.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a wireless sensor network, method of routing of data packets in a wireless sensor network or a computer program product having computer readable program code for routing of data packets in a wireless sensor network embodied thereon. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a sensor node, gateway node or base station which may be a general purpose computer.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

The algorithms may be encoded on the computer program product as executable code which may then be loaded into the memory devices of sensor nodes of the wireless sensor network from a removable data and/or program storage device of the base station before or after deployment of the sensor and gateway nodes through their respective transceivers. Alternatively, the algorithms may be encoded on the computer program product as executable code which may then be loaded into the memory devices of sensor nodes of the wireless sensor network from a removable data and/or program storage device of a general purpose computer before deployment of the sensor and gateway nodes through their respective transceivers. Alternatively, the algorithms may be encoded on the computer program product as executable code may be loaded into the memory devices of sensor nodes during a programming step during fabrication of the sensor nodes either through their respective transceivers or by wired access to their respective memory devices.

Thus the embodiments of the present invention provide a wireless sensor network and method of transmitting data over a wireless sensor network that adaptively addresses both data transmission delay and power consumption by optimizing the balance between power consumption and transmission delay.

The description of the embodiments of the present invention is given above for the understanding of the present invention. It will be understood that the invention is not limited to the particular embodiments described herein, but is capable of various modifications, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, it is intended that the following claims cover all such modifications and changes as fall within the true spirit and scope of the invention. 

1. A method, comprising: (a) detecting a temporal event by a source sensor node of a wireless sensor network comprising a multiplicity of sensor nodes; (b) identifying multiple paths from said source sensor node to a sink of said wireless sensor network, said multiple paths consisting of sensor node to sensor node hops; and after (b), (c) using a processor of said source sensor node, optimizing a distribution of data packets to each path of said multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of said multiple paths and (ii) a time to transmit said data packets from said source sensor node to said sink.
 2. The method of claim 1, further including: after (c), (d) transmitting different data packets of said data packets over each path of said multiple paths from said source sensor node to said sink.
 3. The method of claim 2, further including: between (a) and (b), determining if an amount of data to be transmitted from said source sensor node to said sink exceeds a predetermined limit; if said amount of data exceeds said predetermined limit performing (b), (c) and (d); and if said amount of data is at or below said predetermined limit determining a single path from said source sensor node to said sink, and transmitting data packets containing said data over said single path from said source sensor node to said sink.
 4. The method of claim 1, wherein (c) includes: initialing an optimization equation and a set of constraints for solutions to said optimization equation; performing a Lagrangian function to relax said optimization equation using said constraints; and solving said Lagrangian function for data packet distribution for each path of said multiple paths.
 5. The method of claim 4, further including: using sequential quadratic programming to solve said Lagrangian function.
 6. The method of claim 1, where said optimizing a distribution of data packets includes: determining power consumption for each sensor node in each path of said multiple paths; determining power consumed for transmission and reception of data packets over each path of said multiple paths; determining a time delay for each hop of each path of said multiple paths; determining a maximum allowable amount of time for transmission of data packets from said source sensor node to said sink; determining lifespans for each path of said multiple paths based on an amount of power of a sensor node of each path having a least amount of power remaining; and determining a most stable path based on said lifespans of each path of said multiple paths.
 7. The method of claim 1, wherein (c) includes; solving the equation: Z=τ _(j)(2*Δ_(j) *tp _(j) *H _(j) *p _(j)) with the constraints τ_(j)Δ_(j) =D; max [(Δ_(j)*τ_(j) *H _(j) *p _(j))]≦{[D*τ _(stab) *H _(stab) *p _(j)]+[max [(D/n _(j)*Δ_(j) *H _(j) *p _(j))]}/2; and 2*Δ_(j) *tp _(j) +K _(r)*max(Δ_(j)*τ_(j) *H _(j) *p _(j))<P _(jmin); and where Z is the objective function; D is the total data volume to be transmitted; K_(r)=n_(j)*t_(j); K_(r) is the effective rate of power loss from a node due to processing and sensing (joule/second); n_(j) is the number of sensor nodes in the j^(th) path; t_(j) is the time the path is in use for transmitting data packets; τ_(j)=q_(j)+1/B_(j); τ_(j) is the average delay/packet/hop for j^(th) path (seconds/packet/hop); q_(j) is the average queuing delay in j^(th) path; B_(j) is the bit rate of the j^(th) path (in packets/seconds); p_(j)=2*Δ_(j)*tp_(j)*H_(j); p_(j) is the power consumed in the j^(th) path; tp_(j) is the transmission power/packet/hop for j^(th) path (joules/packet/hop); Δ_(j) is the number of data packets transmitted over the j^(th) path; H_(j) is the number of hops in the j^(th) path; P_(jmin) is the power remaining to the sensor node with the least amount of remaining power in the j^(th) path; τ_(stab) is the average delay/packet/hop for the maximum life span path (seconds/packet/hop); and H_(stab) is the number of hop counts for the maximum life-span path.
 8. A computer program product, comprising: a computer useable storage medium having a computer readable program therein, wherein the computer readable program when executed on a computer causes the computer to: (a) collect information relative to a temporal event detected by a source sensor node of a wireless sensor network comprising a multiplicity of sensor nodes; (b) identify multiple paths from said source sensor node to a sink of said wireless sensor network, said multiple paths consisting of sensor node to sensor node hops; and after (b), (c) optimize a distribution of data packets to each path of said multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of said multiple paths and (ii) a time to transmit said data packets from said source sensor node to said sink.
 9. The computer program product of claim 8, the method further including: after (c), (d) transmitting different data packets of said data packets over each path of said multiple paths from said source sensor node to said sink.
 10. The computer program product of claim 9, the method further including: between (a) and (b), determining if an amount of data to be transmitted from said source sensor node to said sink exceeds a predetermined limit; if said amount of data exceeds said predetermined limit performing (b), (c) and (d); and if said amount of data is at or below said predetermined limit determining a single path from said source sensor node to said sink, and transmitting data packets containing said data over said single path from said source sensor node to said sink.
 11. The computer program product of claim 8, wherein the method step (c) includes: initialing an optimization equation and a set of constraints for solutions to said optimization equation; performing a Lagrangian function to relax said optimization equation using said constraints; and solving said Lagrangian function for data packet distribution for each path of said multiple paths.
 12. The computer program product of claim 11, the method further including: using sequential quadratic programming to solve said Lagrangian function.
 13. The computer program product of claim 8, wherein the method step (c) includes: determining power consumption for each sensor node in each path of said multiple paths; determining power consumed for transmission and reception of data packets over each path of said multiple paths; determining a time delay for each hop of each path of said multiple paths; determining a maximum allowable amount of time for transmission of data packets from said source sensor node to said sink; determining lifespans for each path of said multiple paths based on an amount of power of a sensor node of each path having a least amount of power remaining; and determining a most stable path based on said lifespans of each path of said multiple paths.
 14. The computer program product of claim 8, wherein the method step (c) includes; solving the equation: Z=Σ _(j)(2*Δ_(j) *tp _(j) *H _(j) *p _(j)) with the constraints Σ_(j)Δ_(j) =D; max [(Δ_(j)*τ_(j) *H _(j) *p _(j))]≦{[D*τ _(stab) *H _(stab) *p _(j)]+[max [(D/n _(j)*Δ_(j) *H _(j) *p _(j))]}/2; and 2*Δ_(j) *tp _(j) +K _(r)*max(Δ_(j)*τ_(j) *H _(j) *p _(j))<P _(jmin); and where Z is the objective function; D is the total data volume to be transmitted; K_(r)=n_(j)*t_(j); K_(r) is the effective rate of power loss from a node due to processing and sensing (joule/second); n_(j) is the number of sensor nodes in the j^(th) path; t_(j) is the time the path is in use for transmitting data packets; τ_(j)=q_(j)+1/B_(j); τ_(j) is the average delay/packet/hop for j^(th) path (seconds/packet/hop); q_(j) is the average queuing delay in j^(th) path; B_(j) is the bit rate of the j^(th) path (in packets/seconds); p_(j)=2*Δ_(j)*tp_(j)*H_(j); p_(j) is the power consumed in the j^(th) path; tp_(j) is the transmission power/packet/hop for j^(th) path (joules/packet/hop); Δ_(j) is the number of data packets transmitted over the j^(th) path; H_(j) is the number of hops in the j^(th) path; P_(jmin) is the power remaining to the sensor node with the least amount of remaining power in the j^(th) path; τ_(stab) is the average delay/packet/hop for the maximum life span path (seconds/packet/hop); and H_(stab) is the number of hop counts for the maximum life-span path.
 15. A wireless sensor network, comprising: a set of sensor nodes, each sensor node of said set of sensor nodes including a sensor, a processor, a memory unit, a battery and a transceiver; each sensor node of said set of sensor nodes configured to identify multiple paths from itself to a sink of said wireless sensor network, each path of said multiple paths comprising sensor node to sensor node hops; and each sensor node of said set of sensor nodes configured to optimize a distribution of data packets to each path of said multiple paths by simultaneously reducing (i) power consumed by sensor nodes in each path of said multiple paths and (ii) a time to transmit said data packets from itself to said sink.
 16. The wireless sensor network of claim 15, each sensor node of said set of sensor nodes further including: means for determining if an amount of data to be transmitted from said source sensor node to said sink exceeds a predetermined limit and if said amount of data is at or below said predetermined limit means for determining a single path from said source sensor node to said sink; and means for transmitting data packets containing said data over said single path from said source sensor node to said sink.
 17. The wireless sensor network of claim 15, each sensor node of said set of sensor nodes further including: a multipath routing algorithm for finding multiple paths from itself to said sink; and an optimization algorithm for optimizing said distribution of data packets stored as code executable in each memory of each sensor node of said set of sensor nodes, said optimization algorithm describing and optimization equation and constraints on said optimization equation.
 18. The wireless sensor network of claim 15, each sensor node of said set of sensor nodes further including: means for performing a Lagrangian function to relax said optimization equation using said constraints; and means for solving said Lagrangian function for data packet distribution for each path of said multiple paths using sequential quadratic programming.
 19. The wireless sensor network of claim 15, wherein each sensor node of said set of sensor nodes includes: means for determining power consumption for each sensor node in each path of said multiple paths; means for determining power consumed for transmission and reception of data packets over each path of said multiple paths; means for determining a time delay for each hop of each path of said multiple paths; means for determining a maximum allowable amount of time for transmission of data packets from said source sensor node to said sink; means for determining a lifespan for each path of said multiple paths based on an amount of power a sensor node with a least amount of power remaining; and means for determining a most stable path based on said lifespans of each path of said multiple paths.
 20. The wireless sensor network of claim 15, further including: a base station wirelessly connected to one or more of said set of sensor nodes; or a gateway node wirelessly connected to one or more of said set of sensor nodes, said gateway node either wirelessly or wire connected to said base station; and wherein said base station is a general purpose computer and said gateway node has greater power reserves, greater transmit range or both greater power reserves and greater transmit range than each sensor node of said set of sensor nodes. 